package com.lzh.shijicloudstack.model.dto.category;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author luzhiheng
 * @date 2025-01-25
 */
@Data
@ApiModel(value = "新增/编辑食材分类Dto")
public class AddEditCategoryDto {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 父级ID
     */
    @NotNull(message = "父级ID不能为空")
    @ApiModelProperty(value = "父级ID")
    private Long parentId;

    /**
     * 名称
     */
    @NotEmpty(message = "名称不能为空")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 是否为子节点 0否 1是
     */
    @NotNull(message = "子节点不能为空")
    @ApiModelProperty(value = "是否为子节点 0否 1是")
    private Integer isNode;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
}
